$(document).ready(function() {
    $("button.save-button").button({ icons: {primary:'save-icon', secondary:null}});
    $("button.edit-button").button({icons: {primary:'edit-icon',secondary:null}});
    $("button.delete-button").button({ icons: {primary:'delete-icon',secondary:null}});
    $("button.new-button").button({icons: {primary:'new-icon',secondary:null}});
    $("button.star-button").button({icons: {primary:'star-icon',secondary:null}});
});

/**
 * Global configuration for blockUI plugin.
 */
var blockUIConfig = {
    message: '<img src="../images/ajax-loader-big.gif" />',
    css: {
        padding:        0,
        margin:         0,
        width:          '30%',
        top:            '40%',
        left:           '35%',
        textAlign:      'center',
        color:          '#000',
        border:         'none',
        backgroundColor:'transparent',
        cursor:         'wait'
    },
    overlayCSS:  {
        backgroundColor: '#1B4259',
        opacity:         0.3
    },
    baseZ: 9999999,
};

function jQueryDialogConfig(title,height,width) {
    var config = new Object();
    config.resizable = true;
    config.title = title;
    config.minHeight = height;
    config.minWidth = width;
    config.position = ['center',150];
    config.close = function(event, ui) {
        $(this).remove();
    };
    return config;
};